<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // window.setInterval(回调函数,[间隔毫秒数]);
        // 每隔[间隔毫秒数]触发一次函数

        setInterval(function() {
            console.log('演示文本');
        }, 1000);


        confirm('123');
        open(0);
    </script>
</body>

</html>